<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Item Received</title>
</head>
<body>
	<form:form method="post" modelAttribute="itemReceivedForm"
		id="addSupplierForm">
		<table class="table1">
			<tr>
				<td>BILL NUMBER</td>
				<td><form:input path="billNo"></form:input></td></tr>
				<tr>
				<td>ITEM</td>
				<td><form:select path="item.itemId">
						<form:option value="0" label="-SELECT AN ITEM-" />
						<c:forEach items="${itemsList}" var="item">
							<form:option label="${item.itemName}" value="${item.itemId}"></form:option>
						</c:forEach>
					</form:select></td>
					</tr>
					<tr>
				<td>NO. OF UNITS</td>
				<td><form:input path="noOfUnits"></form:input></td>
				</tr>
				<tr>
				<td>DENOMINATION</td>
				<td><form:select path="denomination.denominationId">
						<form:option value="0" label="-SELECT A DENOMINATION-" />
						<c:forEach items="${denominationsList}" var="denomination">
							<form:option label="${denomination.denominationName}"
								value="${denomination.denominationId}"></form:option>
						</c:forEach>
					</form:select></td>
					</tr>
					<tr>
				<td>MEASURING UNIT</td>
				<td><form:select path="measuringUnit.measuringUnitId">
						<form:option value="0" label="-SELECT A UNIT-" />
						<c:forEach items="${measuringUnitsList}" var="unit">
							<form:option label="${unit.measuringUnitValue}"
								value="${unit.measuringUnitId}"></form:option>
						</c:forEach>
					</form:select></td>
					</tr>
					<tr>
				<td>PRICE PER UNIT</td>
				<td><form:input path="pricePerUnit" /></td>
				</tr>
				<tr>
				<td>SUPPLIER</td>
				<td><form:select path="supplier.supplierId">
						<form:option value="0" label="-SELECT A SUPPLIER-" />
						<c:forEach items="${suppliersList}" var="supplier">
							<form:option label="${supplier.supplierName}"
								value="${supplier.supplierId}"></form:option>
						</c:forEach>
					</form:select></td></tr>
					<tr>
				<td>TOTAL (TAXES EXCLUSIVE)</td>
				<td><form:input path="totalWithoutTax" /></td>
				</tr>
				<tr>
				<td>TAXES</td>
				<td><form:input path="taxes" /></td>
				</tr>
				<tr>
				<td>TOTAL (TAXES INCLUSIVE)</td>
				<td><form:input path="grandTotal" /></td>
				</tr>
				<tr>
				<td>MONTH</td>
				<td><form:select path="month">
						<form:options items="${monthMap}" />
					</form:select></td>
					</tr>
					
					<tr>
				<td>YEAR</td>
				<td><form:select path="year">
						<form:options items="${yearMap}" />
					</form:select></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="5"><input type="submit" value="SUBMIT">&nbsp;
					&nbsp;<input type="button" value="CANCEL"></td>
			</tr>
		</table>
	</form:form>
</body>
</html>